<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.is.control.*" %>
<%@ page import="com.is.model.*" %>
<%@ page import="com.is.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/InterStu/resources/image/favicon.ico" />
<link rel="stylesheet" type="text/css" href="../../resources/css/all.css" />
<link rel="stylesheet" type="text/css" href="../../resources/css/stu_info.css" />
<script type="text/javascript" src="../../resources/js/jquery-1.8.1.js"></script>
<script type="text/javascript">
	$(function(){
		var block = $("#magic_block");
		if($(".active a").position()){
			block.css("top",$(".active a").position().top+10)
			.data("oriTop",$(".active a").position().top)
		}
		$(".nav ul li").find("a").hover(
			function(){
				var $this = $(this);
				var newTop = $this.position().top;
				block.stop().animate({
					top:newTop+10
				})
			},
			function(){
				block.stop().animate({
					top:block.data("oriTop")+10
				})
			}
		)
		var h = $('.right').height();
		$(".left").height(h);
		//$(".content").hide();
	})
</script>
<title>留学生预科班</title>
</head>
<% 
	User cu =(User)session.getAttribute("user"); 
    DesData des = new DesData();
	int sid = Integer.parseInt(des.decrypt(ParamUtil.getString(request,"sid","0")));
	Student s = new Student();
	if(sid == 0){
		s = (Student)session.getAttribute("stu");
	} else
	s = StudentControl.getStudent(sid);
%>
<body>
<div class="header">
	<div class="title pr">
    	<span class="logo pa"></span>
        <span class="logout pa"><a class="hide" href="/InterStu/login/logout.jsp">退出</a></span>
    </div>
</div>
<div class="main">
	<div class="left">   	
    	<div class="nav">
        	<ul>	
            	<li class="pa" id="magic_block"></li>
                <li><a href="/InterStu/pages/attendance/attendance_add.jsp">进入点名</a></li>
				<li  class="active"><a href="/InterStu/pages/students/student_admin.jsp?id=<%=cu.getId() %>">查看学生</a></li>
				<li><a href="/InterStu/pages/students/student_add.jsp">添加学生</a></li>
				<li><a href="/InterStu/pages/paramCourse/course.jsp">添加课程</a> </li>
				<li><a href="/InterStu/pages/courseClass/set.jsp">课程分配</a> </li>
				<li><a href="/InterStu/pages/users/user_all.jsp">查看用户</a></li>
				<li><a href="/InterStu/pages/stuyear/stuyear_start.jsp">开启新学期</a></li>
				<li><a href="/InterStu/pages/dictation/dictation_add.jsp">听写成绩录入</a></li>
				<li><a href="/InterStu/pages/courseScore/score_go.jsp">录入成绩</a></li>
				<li><a href="/InterStu/pages/evaluation/students_all.jsp">查看综合评价</a></li>
				<li><a href="/InterStu/pages/assess/teacher_assess.jsp">教师考核</a></li>
            </ul>
        </div>
    </div>
    <div class="right">
    	<div class="r1">
    	<table border='1' class="table">
			<caption  class="stu_inf">学生信息&nbsp;&nbsp;&nbsp;Information</caption>
			<tbody>
				<tr>
					<td>护照用名<br/>Passport Name</td>
					<td colspan='3'><%=s.getPassportName() %></td>
					<td>中文姓名<br/>Chinese Name</td>
					<td><%=s.getChineseName() %></td>
				</tr>
				<tr>
					<td>国籍</td>
					<td><%=s.getNationality() %></td>
					<td rowspan='2'>性别<br/>Sex</td>
					<td rowspan='2'><%=(s.getSex().equals("1"))?"男":"女" %></td>
					<td colspan='2' rowspan='6'><img src="<%=s.getPicPath() %>" height='150' width='150'/></td>
				</tr>
				<tr>
					<td>Nationality</td>
					<td><%=s.getNationalityEn() %></td>
				</tr>
				<tr>
					<td>出生日期<br/>Date of Birth</td>
					<td><%=s.getBirthday() %></td>
					<td>班级<br/>Class</td>
					<td><%=ParamClassControl.getClassName(Integer.parseInt(s.getClassId())) %></td>
				</tr>
				<tr>
					<td>护照号码<br/>Passport Number</td>
					<td><%=s.getPassportNumber() %></td>
					<td>CSC 号</td>
					<td><%=s.getCscNumber() %></td>
				</tr>
				<tr>
					<td>经费办法<br/>Type of Scholarship</td>
					<td><%=s.getScholarshipType() %></td>
					<td>类别<br/>Level</td>
					<td><%=s.getLevel() %></td>
				</tr>
				<tr>
					<td>学习时间<br/>Duration of Study</td>
					<td colspan='3'><%=s.getDuration() %></td>
				</tr>
				<tr>
					<td>专业院校<br/>University</td>
					<td><%=s.getUniversity() %></td>
					<td>专业<br/>Major</td>
					<td colspan='3'><%=s.getMajor() %></td>
				</tr>
			</tbody>
			</table>
			<p class="btn">外国留学人员来华签证申请表<br/>Visa Application for Study in China</p>
			<p class="content"><img src="<%=s.getVisaApplicationPath() %>" /></p>
			<p class="btn">录取通知书<br/>Admission notice</p>
			<p class="content"><img src="<%=s.getAdmissionPath() %>" /></p>
			<p class="btn">护照<br/>Passport</p>
			<p class="content"><img src="<%=s.getPassportPath() %>" /></p>
			<p class="btn">中华人民共和国签证<br/>Chinese Visa</p>
			<p class="content"><img src="<%=s.getChineseVisaPath() %>" /></p>
        </div>
    </div>
</div>
<div class="footer">
	<p>版权所有：东北师范大学留学生预科部&nbsp;&nbsp;  蓝旭工作室开发</p>
</div>
</body>
</html>